package com.todo.biz.iface.backend.request;

import com.todo.common.common.entity.CurrentStaff;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author zhangwenxiang
 * @date 2024/3/5 13:19
 * @description
 */
@Data
@Schema(title = "新增集合信息入参", description = "新增集合信息入参")
public class InsertCollectSetReq {

    private CurrentStaff _staff;

    /**
     * 集合名称
     */
    @Schema(title = "集合名称", description = "集合名称")
    private String title;


    @Schema(title = "唯一code", description = "唯一code")
    private String code;
    /**
     * 集合描述
     */
    @Schema(title = "集合描述", description = "集合描述")
    private String desc;
    /**
     * 筛选规则
     */
    @Schema(title = "筛选规则", description = "筛选规则")
    private String collectRule;
    /**
     * 集合类型
     * 美食、门店、景点等
     * CollectSetTypeEnum
     */
    @Schema(title = "集合类型", description = "美食、门店、景点等")
    private Integer collectType;
    /**
     * 省份
     */
    @Schema(title = "省份", description = "省份")
    private String province;
    /**
     * 城市
     */
    @Schema(title = "城市", description = "城市")
    private String city;
    /**
     * 主图
     */
    @Schema(title = "主图", description = "主图")
    private String mainImg;

    public boolean baseCheck() {
        if (title == null || desc == null || collectRule == null || collectType == null || province == null || city == null || mainImg == null) {
            return false;
        }
        return true;
    }
}
